This is the replication archive for "Which Police Departments Want Reform? Barriers to Evidence-Based Policymaking."  It was prepared on R 4.1.2 on MacOS 12.3.1

To run this code you must create a "results" and "data".  

The file main.R will call individual R scripts required to generate each table/figure.  You must run main.R to load and process data.  You cannot run each script independently.

Data files:

- ag.csv: aggregated covariate data file.
- national_data.csv: main data file for the national experiment.
- new_jersey_data.csv: main data file for the New Jersey experiment.
- correlation_names.csv: Human readable names for a figure
- national_data_sheriff.csv: a subset of the main file with data on sheriff departments merged in

Scripts:
-main.R: primary replication file.R

-figure1.r: manuscript figure
-figure2.r: manuscript figure
-figure3.r: manuscript figure
-figuree1.r: appendix figure
-figuree2.r: appendix figure
-figureg1.r: appendix figure
-figureh1.r: appendix figure

-tabled1.r: appendix table
-tabled2.r: appendix table
-tablee1.r: appendix table
-tablee2.r: appendix table
-tablee3.r: appendix table
-tablee4.r: appendix table
-tablee5.r: appendix table
-tablej1.r: appendix table
-tablek1.r: appendix table

R package dependencies:

library(stargazer)
library(tidyverse)
library(xtable)
library(clubSandwich)
library(lmtest)
library(rddtools)
library(sandwich)
library(lmtest)
library(usmap)
library(rgdal)
library(tigris)
library(stringr)
library(tidycensus)
library(acs)
library(sf)
library(tmap)
library(interflex)